//arg0 - name
var _thename;
_thename = argument0;
for(i=0;i<instance_number(CEvent);i+=1)
{
    ii = instance_find(CEvent, i);
    if (ii.name == _thename)
    {
        return ii;
    }
}

return noone;
